package cn.edu.seu.cose.qol.model.dto.question;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "question")
public class QuestionInstance {
	
	@XmlAttribute(name = "id")
	private long _id;
	
	@XmlAttribute(name = "type")
	private QuestionContentType _contentType;

	@XmlElement(name = "body")
	private String _body;
	
	@XmlElement(name = "content")
	private QuestionContent _content;
	
	public long getId() {
		return _id;
	}
	
	public void setId(long id) {
		_id = id;
	}
	
	public QuestionContentType getContentType() {
		return _contentType;
	}
	
	public void setContentType(QuestionContentType contentType) {
		_contentType = contentType;
	}
	
	public String getBody() {
		return _body;
	}
	
	public void setBody(String body) {
		_body = body;
	}
	
	public QuestionContent getContent() {
		return _content;
	}
	
	public void setContent(QuestionContent content) {
		_content = content;
	}

}
